﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall;
using Runaway.Screens;
using FlatRedBall.Math.Geometry;
using FlatRedBall.Graphics;
using FlatRedBall.Instructions;


namespace Runaway
{
    class GameScreen : Screen
    {
        private GameManager gameMan;
        bool pause = false;

        private int stepsElapsed = 0;
        private BitmapFont CustomFont;
        private Text text;

        public GameScreen()
            : base("GameScreen")
        {

        }

        public override void Initialize(bool addToManagers)
        {
            gameMan = new GameManager();

            base.Initialize(addToManagers);

            if (addToManagers)
            {
                AddToManagers();
            }
        }
        public override void AddToManagers()
        {
            base.AddToManagers();
        }

        public override void Activity(bool firstTimeCalled)
        {
            gameMan.Update();
        }

        public override void Destroy()
        {
            TextManager.RemoveText(text);
            gameMan.Destroy();
            base.Destroy();
        }
    }
}
